public class Num5 {
    public static void main(String[] args) {
        int a = 1;
        double p = 1;
        while (a <= 20) {
            p *= a;
            a++;
        }
        System.out.println("p=" + p);
    }
}
